import { screenApi } from '@/request/instances'

export async function getScreenList() {
  return await screenApi.get('/api/screen/list')
}

export async function getScreenDetail(id: string) {
  return await screenApi.get(`/api/screen/${id}`)
}

export async function createScreen(data: any) {
  return await screenApi.post('/api/screen', data)
}

export async function updateScreen(id: string, data: any) {
  return await screenApi.put(`/api/screen/${id}`, data)
}

export async function deleteScreen(id: string) {
  return await screenApi.delete(`/api/screen/${id}`)
}